from django.db import models

class MessageData(models.Model):
	content = models.CharField(u'内容', default='', max_length=400)
	sender_name = models.CharField(u'昵称', default='', max_length=400)
	sender_uuid = models.CharField(u'uuid', default='', max_length=120)
	session = models.CharField(u'会话名称', default='', max_length=120)
	time_create = models.DateTimeField(u'创建时间', auto_now_add=True)
	time_update = models.DateTimeField(u'更新时间', auto_now=True)
	class Meta:
		db_table = 'MessageData'

class SessionInfo(models.Model):
	name = models.CharField(u'会话名称', default='', max_length=120)
	token = models.CharField(u'登陆名称', default='', max_length=30)
	time_create = models.DateTimeField(u'创建时间', auto_now_add=True)
	time_update = models.DateTimeField(u'更新时间', auto_now=True)
	class Meta:
		db_table = 'SessionInfo'

